package com.wc.AlgoOJ_homework.AlgoOJ_HomeWork1.U_天干地支;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/1/20 16:18
 * @description http://43.138.190.70:8888/p/LQ1123
 */
public class Main {
    static String[] tiangan = new String[]{"jia", "yi", "bing", "ding", "wu", "ji", "geng", "xin", "ren", "gui"};
    static String[] dizhi = new String[]{"zi", "chou", "yin", "mao", "chen", "si", "wu", "wei", "shen", "you", "xu", "hai"};

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int re = 56;
        System.out.println(tiangan[(n % 10 + re) % 10] + dizhi[(n % 12 + re) % 12]);
    }
}
